﻿//======================================================================
//
//    
//======================================================================

using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using Hisun.Models;
using System.Collections.Generic;
using Hisun.Controllers;

namespace Hisun.View.Shared
{
    public partial class LeftMenu : AbcPageBase
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if (Session[ServerVars.sysSessionUserAuths] == null || string.IsNullOrEmpty(Session[ServerVars.sysSessionUserAuths].ToString()))
                    throw new Exception("没有登录！");
                AbcMenu menu = new AbcMenu();
                TreeView1.Nodes.Add(menu.GetOwnLeftMenu((List<int>)Session[ServerVars.sysSessionUserAuths]));
            }
        }
    }
}
